

import React from 'react';

import { BrowserRouter as Router, Route, Redirect, Switch, Link }
    from "react-router-dom";

// 这是页面 做集成用的

import ProductList from 'page/product/index/index.js';
// import ProductCategort from 'page/product/categort/index.js';
import ProductSave from 'page/product/index/save.js';


class ProductRouter extends React.Component {
    render() {
        return (
            <div>
                <Switch>
                    <Route path='/product/index' component={ProductList}/>
                    <Route path='/product/save' component={ProductSave} />                        
                    
                    {/* <Route path='/product-category' component={ProductCategort} />                         */}
                    <Redirect exact from="/product" to="/product/index" />
                </Switch>
            </div>
        );
    }
}
export default ProductRouter